
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

window.Vue = require('vue');

import YDUI from 'vue-ydui';
import 'vue-ydui/dist/ydui.rem.css';

const FastClick = require('fastclick');

document.addEventListener('DOMContentLoaded', function () {
    FastClick.attach(document.body);
}, false);

Vue.use(YDUI);

// 首页
Vue.component('view-home', require('./componentsV2/home/index.vue'));

// 供应大厅（商品列表）
Vue.component('view-products', require('./componentsV2/product/index.vue'));

const app = new Vue({
    el: '#app'
});